
            <h1>
              提交新商品 <small><?php echo $title; ?> <a href="<?php echo site_url('admin/itemlist?store_id=') . $store_id;?>">----->返回商品列表</a></small>
            </h1>
            <h3>
              <?php echo $result ?>
            </h3>
          </div>
              
              <?php

                echo form_open_multipart('admin/newitem?store_id=' . $store_id);
                echo "<br/>";

                echo form_label('商品名称','item_name');
                echo "<br/>";
                echo form_input('item_name', '');
                echo "<br/>";

                echo form_label('商品类型','item_type');
                echo "<br/>";
                echo form_input('item_type', '');
                echo "<br/>";

                echo form_label('商品价格','item_price');
                echo "<br/>";
                echo form_input('item_price', '');
                echo "<br/>";

                echo form_label('商品介绍','item_note');
                echo "<br/>";
                echo form_textarea('item_note', '');
                echo "<br/>";

                echo form_label('显示图片','item_note');
                echo "<br/>";
                echo form_checkbox('show_pic', 'show', FALSE); // 0 means show pic, 1 means hide pic
                echo "<br/>";

                echo form_label('商品图片','item_pic');
                echo "<br/>";
                echo form_upload('item_pic', '');
                echo "<br/>";

                echo form_submit('submit', '提交新商品');
                echo form_close();

               ?>
